package com.yyw.gulimall.authserver.service;

import com.yyw.gulimall.authserver.vo.LoginUserVo;
import com.yyw.gulimall.authserver.vo.RegisterUserVo;
import org.springframework.validation.BindingResult;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpSession;

/**
 * @author 易煜玮
 * @ClassName UserService.java
 * @Description 用户接口服务
 * @createTime 2020年12月14日 20:19:00
 */
public interface UserService {
    /**
     * 用户注册
     *
     * @param userVo
     * @param bindingResult
     * @param model
     * @return model
     */
    ModelAndView registerUser(RegisterUserVo userVo, BindingResult bindingResult, ModelAndView model);

    /**
     * 用户登录
     * @param userVo
     * @param bindingResult
     * @param model
     * @param session
     * @return
     */
    ModelAndView loginUser(LoginUserVo userVo, BindingResult bindingResult, ModelAndView model, HttpSession session);
}
